#include "head.h"

int cdFunc(int sockfd) {
    // int n;
    // ssize_t recv_size = recv(sockfd, &n, sizeof(int), 0);
    // if (n == 0) {
    //     printf("cd failed: ");
    //     recvSmall(sockfd);
    // }
    int ifError;
    recv(sockfd, &ifError, sizeof(int), 0);
    if (ifError != 0) {
        // 接收一个小火车
        printf("cdFunc is error\n");
    }
    printf("cdFunc is successful \n");
    return 0;
}
